<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>RabbitMQ Web STOMP Examples : Echo Server</title>
    <script src="js/stomp.min.js"></script>
</head>

<script>
    var client = Stomp.client(`ws://localhost:15674/ws`);
    var on_connect = function (x) {
        id = client.subscribe("/exchange/paynotify", function (d) {
            alert(d.body);
        });
    };

    var on_error = function () {
        console.log('error');
    };
    client.connect('guest', 'guest', on_connect, on_error, '/');


</script>
<body>

</body>
</html>